package cn.springcloud.fix.quartz.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 定时任务日志表
 * </p>
 *
 * @author yangjun
 * @since 2019-12-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SysJobLog implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 物理主键，自增
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * sys_job.id
     */
    private Long jobId;

    /**
     * job名称
     */
    private String jobName;

    /**
     * job组
     */
    private String jobGroup;

    /**
     * 执行时间
     */
    private Date fireTime;

    /**
     * 下次执行时间
     */
    private Date nextFireTime;

    /**
     * 执行耗时
     */
    private Long duration;

    /**
     * job执行状态，-1：失败，0：成功
     */
    private Integer status;

    /**
     * 详细信息
     */
    private String remark;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 最后修改时间
     */
    private Date updateTime;
}
